<?php

namespace ltcms;

define('LTCMS_FILE', basename(__FILE__,".php"));
define('LTCMS_ROOT', str_replace("\\", '/', dirname(__FILE__,2)));
define('LTCMS_PATH', LTCMS_ROOT."/ltcms");
define('LTCMS_APP', LTCMS_ROOT."/app");
define('LTCMS_CUSTOM', LTCMS_ROOT."/custom");
define('LTCMS_VERSION', LTCMS_ROOT."/version");
define('LTCMS_PUBLIC', LTCMS_ROOT."/public");

//加载加载函数
require __DIR__ . "/../ltcms/Loader.php";

// 执行应用并响应
$app = App::getInstance();
$response=$app->init()->run();
if($response){
    $response->send();
}

